package com.wyj.chat.websocket_chat.dao;

import com.wyj.chat.websocket_chat.pojo.Friends;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FriendsMapper {

    List<Friends> getListById(String id);

    int insertFriends(Friends friends);

    int insertFriend(Friends friends);

    int updateFriends(Friends friends);

    int deleteFriends(@Param("id") String id, @Param("userId") String UserId);
    /**
     * 根据用户id获取好友列表
     */
    List<Friends> getListByUser(String id);

    Friends getListByUserIdAndFriName(Friends friends);
}
